package com.atguigu.yygh.orders.service;


import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2021-09-13
 */
public interface OrderInfoService extends IService<OrderInfo> {
    //生成挂号订单 根据排班id 就诊人id 医院返回数据 生成订单
    Long saveOrder(String scheduleId, Long patientId);

    //订单列表条件查询带分页
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    // 获取订单详情
    OrderInfo getOrderInfo(Long id);

    //取消预约
    Boolean cancelOrder(Long orderId);

    //就医提醒
    void patientTips();

    //订单统计
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
